package com.fzrskj.cloud.free.sys.bean;

import lombok.Data;

import java.util.Date;

@Data
public class User {
	//private declarations
	/**
	 * uid, user record id.
	 */
	private int id;
	/**
	 * account id.
	 */
	private int accountId;
	/**
	 * user account, can be as email.
	 */
	private String account;
	/**
	 * user password.
	 */
	private String password;
	/**
	 * user department.
	 */
	private String department;
	/**
	 * user duty.
	 */
	private String duty;
	/**
	 * user mobile.
	 */
	private String mobile;
	/**
	 * user office tel.
	 */
	private String officeTel;
	/**
	 * temporary check code.
	 */
	private String checkcode;
	/**
	 * user nick.
	 */
	private String nick;
	/**
	 * user type; 0-common user; 1-administrator; 2-super administrator.
	 */
	private short utype;
	/**
	 * user roles,the format is "role1,role2,role...".
	 */
	private String roles;
	/**
	 * user functions.
	 */
	private String funcs;
	/**
	 * visit ip of last time.
	 */
	private String visitIp;
	/**
	 * time of last visit.
	 */
	private Date visitTime;
	/**
	 * user account create time.
	 */
	private Date createTime;
	/**
	 * user state 0-正常; 1-停用; 2-冻结.
	 */
	private int state;
	/**
	 * 数据分组：1全局、2客服、3、技术.
	 */
	private Integer groupCode;

	/**
	 * 所属代理ID.系统为0
	 */
	private Integer agentId;
}